@ var main = {
<script type="text/javascript">

</script>

<main> 
  <!--右边部分-->
  
 
   <bg:queryForm colnum="3" id="queryform" action="${ctxPath}/table.html" >
       <bg:text label="车辆名称"  name="name" ></bg:text>
       <bg:text label="状态"   name="status"></bg:text>       
   </bg:queryForm>
 
  <div class="table-box">    
    <dl class="table-con" id="table">
       <bg:tableBar >
       		<bg:button id="add" style="disable" onclick="addNewCars()">新增车辆</bg:button>
       		<bg:button id="del"  onclick="addNewCars()">激活定位</bg:button>    
       		<bg:button id="send" >发送短信</bg:button> 
       		<bg:button id="add"  style="secondary" >发送短信</bg:button>       		
       </bg:tableBar>        
     
        @ #ajax carsTable:{
        <div>
        <!-- 表格开始部分 -->
        <bg:table id="cars-id" queryForm="queryform" data="${pageView}" rowid="id" style="scroll" check="mutiple" var="row,index">
        	     	
        	<bg:tr name="车牌号"  style="width:200px;primary">${row.no}</bg:tr>
        	<bg:tr name="司机"  style="hidden" >${row.name}</bg:tr>
        	<bg:tr name="手机号" >${row.mobile}</bg:tr>
        	<bg:tr name="地址" >${row.address}</bg:tr>        	
        	<bg:tr name="操作123">
        		<bg:button style="link;disable">编辑</bg:button> 
        		<bg:button style="link"  onclick="testClick(${row.id},'${row.name}')" >删除</bg:button> 
        		<bg:button style="link" >定位</bg:button> 
        		<bg:button style="link" >开始</bg:button> 
        	</bg:tr>
         </bg:table> 
         <!-- 表格结束部分 -->  
         </div>
        @}  
        
    </dl>
   
            
  </div>
</main>

@};
@var title = "table测试页面";
@include("/common/layout.html",{title:title,main:main}){}

